import request from "@/utils/request";
//获取轮播图列表
export function getImgList(Num,Size) {
    return request({
        url: "/img/page",
        method: 'get',
        params: {
            pageNum: Num,
            pageSize: Size,
        }
    })
}
//更新或添加轮播图
export function addOrUpdateImg(form) {
    return request({
        url: "/img",
        method: 'post',
        data: form
    })
}
//根据id删除轮播图
export function deleteImg(id) {
    return request({
        url: "/img/" + id,
        method: 'delete',
    })
}
